/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Race Alaskan Native Siberian Eskimo</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * specDomain: S15617 (C-0-T14914-S14915-S15470-S15569-S15617-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getRaceAlaskanNativeSiberianEskimo()
 * @model extendedMetaData="name='RaceAlaskanNativeSiberianEskimo'"
 * @generated
 */
public enum RaceAlaskanNativeSiberianEskimo implements Enumerator {
	/**
	 * The '<em><b>18911</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_18911_VALUE
	 * @generated
	 * @ordered
	 */
	_18911(0, "_18911", "1891-1"),

	/**
	 * The '<em><b>18929</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_18929_VALUE
	 * @generated
	 * @ordered
	 */
	_18929(1, "_18929", "1892-9"),

	/**
	 * The '<em><b>18937</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_18937_VALUE
	 * @generated
	 * @ordered
	 */
	_18937(2, "_18937", "1893-7"),

	/**
	 * The '<em><b>18945</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_18945_VALUE
	 * @generated
	 * @ordered
	 */
	_18945(3, "_18945", "1894-5");

	/**
	 * The '<em><b>18911</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>18911</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_18911
	 * @model literal="1891-1"
	 * @generated
	 * @ordered
	 */
	public static final int _18911_VALUE = 0;

	/**
	 * The '<em><b>18929</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>18929</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_18929
	 * @model literal="1892-9"
	 * @generated
	 * @ordered
	 */
	public static final int _18929_VALUE = 1;

	/**
	 * The '<em><b>18937</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>18937</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_18937
	 * @model literal="1893-7"
	 * @generated
	 * @ordered
	 */
	public static final int _18937_VALUE = 2;

	/**
	 * The '<em><b>18945</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>18945</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_18945
	 * @model literal="1894-5"
	 * @generated
	 * @ordered
	 */
	public static final int _18945_VALUE = 3;

	/**
	 * An array of all the '<em><b>Race Alaskan Native Siberian Eskimo</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RaceAlaskanNativeSiberianEskimo[] VALUES_ARRAY =
		new RaceAlaskanNativeSiberianEskimo[] {
			_18911,
			_18929,
			_18937,
			_18945,
		};

	/**
	 * A public read-only list of all the '<em><b>Race Alaskan Native Siberian Eskimo</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RaceAlaskanNativeSiberianEskimo> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Race Alaskan Native Siberian Eskimo</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeSiberianEskimo get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeSiberianEskimo result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Siberian Eskimo</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeSiberianEskimo getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RaceAlaskanNativeSiberianEskimo result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Race Alaskan Native Siberian Eskimo</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RaceAlaskanNativeSiberianEskimo get(int value) {
		switch (value) {
			case _18911_VALUE: return _18911;
			case _18929_VALUE: return _18929;
			case _18937_VALUE: return _18937;
			case _18945_VALUE: return _18945;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RaceAlaskanNativeSiberianEskimo(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RaceAlaskanNativeSiberianEskimo
